//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Diagnostics.Contracts;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class InterfaceHdrRecord : BiffRecord
    {

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            var codePage = context.ReadUInt16();
            Contract.Assert(codePage == 0x04B0);
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.InterfaceHdr; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Write((ushort)0x04B0);
        }
    }
}